
const zxModules = {
	namespaced: true,
	state: {
        feedBackInfo:{}, // 存意见反馈信息 避免需要用户重复输入
        noticeDetailDate:{}, //公告详情数据
        evaluateDate:{},    //评价商品数据
	},
	getters: {
		getFeedBackInfo(state){
			return state.feedBackInfo;
        },
        getNoticeDetailDate(state){
            return state.noticeDetailDate
        },
        getEvaluateDate(state){
            return state.evaluateDate
        }
	},
	actions: {
		changeNoticeDetailDate({commit},noticeDetailDate){
            commit("SETNOTICEDETAILDATE",noticeDetailDate);
        },
        changeEvaluateDate({commit},evaluateDate){
            commit("SETEVALUATEDATE",evaluateDate);
        }
	},
	mutations: {
        setFeedBackInfo(state,feedBackInfo){
			state.feedBackInfo = feedBackInfo;
        },
        SETNOTICEDETAILDATE(state,noticeDetailDate){
            state.noticeDetailDate = noticeDetailDate;
            console.log(state.noticeDetailDate,'给state赋值')
        },
        SETEVALUATEDATE(state,evaluateDate){
            state.evaluateDate = evaluateDate;
            console.log(state.evaluateDate,'给state赋值')
        }
	}
}

export default zxModules;
